<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        font-size: 36px;
        text-align: center;
    }
</style>


<body>
    <div></div>
    <script>
        var div = document.querySelector('div');

        setInterval(function() {
            var date = new Date();
            var years = date.getFullYear();
            var month = date.getMonth() + 1;
            var day = date.getDate();
            var hours = date.getHours();
            var minter = date.getMinutes();
            var scound = date.getSeconds();
            if (scound < 10) {
                scound = "0" + scound;
            } else if (minter < 10) {
                minter = "0" + minter;
            } else if (hours < 10) {
                hours = "0" + hours;
            }
            div.innerText = years + "年" + month + "月" + day + "日" + hours + ":" + minter + ":" + scound;
        }, 1000);
    </script>
</body>

</html>